function check_name() {
    var param = {
        name: $("#companyName").val(),
        uuid:$("#uuid").val()
    };
    var url = "/storage/Supplier/checkSupplierName";
    var success = function (ret) {
        if (ret === true) {
            $("#companyNameError").text('厂商名已存在');
        } else {
            $("#companyNameError").text('');
        }
    };
    ajax('get', url, param, success);
}

$("#companyName").blur(function () {
    check_name();
});
